Clearing Cache
The BuildingGen plugin optimizes memory usage by utilizing instances of similar building parts rather than creating each part as a unique object. For example, all front-facing walls of the same style are instances of a single source wall object, sharing the same material. Similarly, side-facing walls, windows, and more follow this approach. However, the way a building part is instanced can vary depending on factors such as its floor level. For example, walls on the ground level may not share the same instances as those on mid-level floors.
Moreover, edits made to shared materials are cached, meaning any changes will affect all instances of the respective objects. While this simplifies altering multiple instances of a particular building part, it can lead to unintended changes being inherited by new constructions. In such cases, the Clear Cache command is available to reset all materials to their default appearances. This command also helps reduce excess memory usage resulting from the diverse building styles used during construction.
-
Start by selecting the building in the scene.
- Navigate to the Building Gen panel. At the bottom of the panel, you will see the total amount of cache memory that the Building Gen plugin has accumulated.
- Click the Clear Cache button and the cached data will be cleared.
Note: Clearing cache memory may temporarily slow down subsequent constructions. This is because Building Gen needs to refind the props and materials currently deployed by the Building Gen configuration file.
Resetting building styles to default settings
Clear Cache can also reset all building styles to their default settings, removing prior material editing.
Note: BuildingGen caches all textures used during the construction process, making it much faster to create subsequent buildings that source from the same textures.
New buildings created with the blueprint gizmo are adversely influenced by the settings of prior building customizations.
By using BuildingGen > Building Settings > Clear Cache, the cached memory is erased.
The building style settings will be reset to their default values, and the subsequent constructions will be clear of unwanted elements from prior customizations.
To customize building materials without using presets, see here.